package _14;

public class _Static {
    public static void main(String[] args) {
        System.out.println("采用类名直接调用方式：9 + 10 = " + GeneralFunction.add(9, 10));
        System.out.println("采用对象调用的方式：19 + 110 = " + new GeneralFunction().add(19,110));
    }
}

class GeneralFunction{
    static int x;
    static int y;
    static int add(int x, int y){
        return x + y;
    }
}
